package com.vn.ld.btc.dao.entity;

import java.io.Serializable;

import javax.persistence.*;

import java.util.Date;
import java.math.BigDecimal;


/**
 * The persistent class for the deposit database table.
 * 
 */
@Entity
@Table(name="deposits")
@NamedQuery(name="Deposit.findAll", query="SELECT d FROM Deposit d")
public class Deposit implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="deposit_id", unique=true, nullable=false, length=20)
	private String depositId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="accept_date")
	private Date acceptDate;

	@Column(name="active_flg")
	private Integer activeFlg;

	@Column(precision=10, scale=6)
	private BigDecimal amount;

	@Column(name="deposit_method", nullable=false)
	private Integer depositMethod;

	@Column(nullable=false)
	private Integer destination;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="input_date")
	private Date inputDate;

	@Column(nullable=false)
	private Integer status;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="update_date")
	private Date updateDate;

	public Deposit() {
	}

	public String getDepositId() {
		return this.depositId;
	}

	public void setDepositId(String depositId) {
		this.depositId = depositId;
	}

	public Date getAcceptDate() {
		return this.acceptDate;
	}

	public void setAcceptDate(Date acceptDate) {
		this.acceptDate = acceptDate;
	}

	public Integer getActiveFlg() {
		return this.activeFlg;
	}

	public void setActiveFlg(Integer activeFlg) {
		this.activeFlg = activeFlg;
	}

	public BigDecimal getAmount() {
		return this.amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public Integer getDepositMethod() {
		return this.depositMethod;
	}

	public void setDepositMethod(Integer depositMethod) {
		this.depositMethod = depositMethod;
	}

	public Integer getDestination() {
		return this.destination;
	}

	public void setDestination(Integer destination) {
		this.destination = destination;
	}

	public Date getInputDate() {
		return this.inputDate;
	}

	public void setInputDate(Date inputDate) {
		this.inputDate = inputDate;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getUpdateDate() {
		return this.updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

}